import { IFormItem, IForm } from '@/base-ui/form'

const formItems: IFormItem[] = [
  {
    type: 'input',
    label: '用户名',
    rules: [],
    placeholder: '请输入用户名'
  },
  { type: 'password', label: '密码', placeholder: '请输入密码' },
  {
    type: 'select',
    label: '喜欢的运动',
    placeholder: '请选择喜欢的运动',
    options: [
      { label: '篮球', value: '篮球' },
      { label: '足球', value: '足球' },
      { label: '台球', value: '台球' },
      { label: '乒乓球', value: '乒乓球' }
    ]
  },
  {
    type: 'datepicker',
    label: '创建时间',
    otherOptions: {
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间',
      type: 'daterange'
    }
  }
]

export const searchFormConfig: IForm = {
  formItems,
  labelWidth: '120px',
  itemStyle: { padding: '10px 40px' },
  colLayout: { span: 8 }
}
